import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const comp: AppRouteModule = {
  path: '/agent',
  name: 'Agent',
  component: LAYOUT,
  redirect: '/agent/patient',
  meta: {
    orderNo: 30,
    icon: 'ion:layers-outline',
    title: t('代理/销售'),
  },
  children: [
    {
      path: 'Patient',
      name: 'Patient',
      component: () => import('/@/views/patient/index.vue'),
      meta: {
        title: t('我的受检者'),
      },
    },
  ],
};

export default comp;
